javascript capitalize string

98

capitalize in javascript -

const name = 'flavio'
const nameCapitalized = name.charAt(0).toUpperCase() + name.slice(1)

Comments

Submit
0 Comments